package com.slunk.physics.characters;

import com.badlogic.gdx.math.MathUtils;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.World;

public class Powerup extends Character{
	//Not sure what to do with this class yes. Work on later
	public Powerup(World world, Vector2 position, float boxWidth, float boxHeight,  Short categoryBits, Short maskBits) {
		//super(world, position, boxWidth, boxHeight);
		super (world, position, boxWidth, boxHeight, categoryBits, maskBits);
		this.getCharacterBody().getFixtureList().get(0).setDensity(1.0f);
		this.getCharacterBody().getFixtureList().get(0).setRestitution(1.0f);
		this.getCharacterBody().getFixtureList().get(0).setFriction(0.0f);
		
		float velocity_x = MathUtils.random(-500.0f,500.0f);
    	float velocity_y = MathUtils.random(-500.0f,500.0f);
    	Vector2 randomVelocity = new Vector2(velocity_x,velocity_y);
    	this.getCharacterBody().setLinearVelocity(randomVelocity);
    	
    	//this.body.setUserData(this);
	}
}
